﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XRM.Security.DataAccess.Models
{
    [Table("UserPC")]
    public class UserPC
    {
        [Key]
        [Column(Order = 1)]
        public int UserRegisterId { get; set; }
        [Key]
        [Column(Order = 2)]
        public int PCId { get; set; }

        [ForeignKey("UserRegisterId")]
        public virtual UserRegister UserRegister { get; set; }
        [ForeignKey("PCId")]
        public virtual PC PC { get; set; }
    } 
}
